{% load commenttags %}
{% load pp_url %}
    
<ul id="comment_links{{object.pk}}" class="comment_links">
{% if request.user.is_authenticated %}
        <li>
            <a href="javascript:;" onmousedown="toggleSlide('pp_reply_form{{object.pk}}');">reply</a>
        </li>
        <li>
            <a href="{{object.get_absolute_url}}">permalink</a>
        </li>

        {% if request.user == object.user %}
        <li>
            <a href="javascript:;" onmousedown="toggleSlide('pp_edit_form{{object.pk}}');">edit</a>
        </li>
        {% endif %}

{% else %}
        <li>
            <a href="{% pp_url template='register.html' %}" >reply</a>
        </li>
        <li>
            <a href="{{object.get_absolute_url}}">permalink</a>
        </li>
    

{% endif %}

    </ul>
    <p>

{% if request.user.is_authenticated %}

    <div class='reply_comment' id='pp_reply_form{{object.pk}}' style='display:none; overflow:hidden; height:290px;width:100%;'>
            {% include "pp_reply_form.html" %}
    </div>

{% endif %}

{% if request.user == object.user %}


    <div class='reply_comment' id='pp_edit_form{{object.pk}}' style='display:none; overflow:hidden; height:290px;width:100%;'>

       {% include "pp_edit_form.html" %}

    </div>

{% endif %}

</p>

</li>